﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BT_Mang_Nhom13.Library;
using BT_Mang_Nhom13.Checker;

namespace BT_Mang_Nhom13.Sorter
{
    public abstract class MySorter<T> where T : IComparable<T>
    {
        protected void Swap(T[] Data, int i, int j)
        {
            T temp = Data[i];
            Data[i] = Data[j];
            Data[j] = temp;
        }

        public virtual T[] Sort(T[] Data, MyComparer<T> Comparer)
        {
            return null;
        }

        public virtual T[] Sort(T[] Data, Func<T, T, int> Compare)
        {
            return null;
        }
    }
}
